<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AppointmentListModel>" %>
<%@ Import Namespace="Netkk.Core"%>
<%@ Import Namespace="Netkk.Models"%>

<%@ Import Namespace="Netkk.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Vergangene Termine- .NET-Stammtisch Konstanz-Kreuzlingen</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        Vergangene Termine</h1>
    <p>
        <%= Html.PagerLinks("Appointments", "Index", Model.TotalPages, Model.CurrentPage, "pager", "more", "")%></p>
    <%foreach (AppointmentModel appointment in Model.Appointments)
      {
          Html.RenderPartial("AppointmentOverview", appointment);
      }
    %>
    <p>
        <%= Html.PagerLinks("Appointments", "Index", Model.TotalPages, Model.CurrentPage, "pager", "more", "")%></p>
    <%
        if (Model.ShowCreateAppointments)
        {
    %>
    <p>
        <a href="<%=Html.Action("Appointments", "Create") %>" class="addappointment button"><span>Neuen Termin anlegen</span></a></p>
    <%} %>
</asp:Content>
